#ifndef SERIAL_H
#define SERIAL_H
#include <termios.h> 
#include <stdio.h> 
#include <unistd.h> 
#include <fcntl.h> 
#include <time.h> 
#include <string.h>
//#include <sys/signal.h> 
#include <pthread.h> 
#define BAUDRATE B9600 
#define COM1 "/dev/ttySAC0" 
#define COM2 "/dev/ttySAC1" 
static int fd;////volatile  int fd 
static struct termios oldtio,newtio; 
char shell_s[]="\nkeyshell> ";


/*--------------------------------------------------------*/ 
#define ENDMINITERM 27 /* ESC to quit miniterm */ 
#define FALSE  0 
#define TRUE  1 
/*--------------------------------------------------------*/ 
volatile int STOP=FALSE; 
int GET_GPRS_OK=FALSE; 
int baud=B9600; 
int get_baudrate(int argc,char** argv); 

char cmd[20]={ '0','1', '2', '3','4','5','6','7','8','9'}; 
void * keyshell(); 
int tty_init();
#endif
